package com.d3works.apps.crm.job;

import com.d3works.apps.base.job.ThreadedBaseJob;
import com.d3works.apps.base.job.UncheckedJobExecutionException;
import com.d3works.apps.crm.db.repo.CrmBatchRepository;
import com.d3works.apps.crm.service.batch.CrmBatchService;
import org.quartz.JobExecutionContext;

public class EventReminderJob extends ThreadedBaseJob {

  @Override
  public void executeInThread(JobExecutionContext context) {
    try {
      executeBatch(CrmBatchService.class, CrmBatchRepository.CODE_BATCH_EVENT_REMINDER);
    } catch (Exception e) {
      throw new UncheckedJobExecutionException(e);
    }
  }
}
